<template>
  <el-tabs v-model="activeName" @tab-click="handleClick">
    <el-tab-pane label="车辆资料" name="cheliang">
      <vehicle-from :currentNode="currentNode"/>
    </el-tab-pane>
    <el-tab-pane label="业主资料" name="yezhu">
      <custom-info-from :currentNode="currentNode"/>
    </el-tab-pane>
  </el-tabs>
</template>
<script>
import  vehicleFrom  from "./form"
import customInfoFrom  from "./customInfoFrom"
  export default {
    name:'vehicleMain',
    components:{vehicleFrom,customInfoFrom},
    data() {
      return {
        activeName: 'cheliang',
        businessType:'vehicle',
      };
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    },
    props: {
      currentNode: {
        type: Object,
        default:()=>{}
      },
    }
  };
</script>
